Hello There.

Let me thank you for purchasing your licensed copy of JiLMaiL. Before we start with the instructions, I'd like to tell you that setting up an email system requires a good knowledge of server, control panel and such things. We have tried in every possible way to make it easy and handy for you. If by any reason you face any difficulty catch our support department available at: http://www.jilmail.com/support

 

 

 

Things you must know first:

FTP - File Transfer Protocol. This is the method of transferring files from your local machine, to another machine. Common FTP clients are WS_FTP, Cute_FTP. We recommend WS_FTP.

Binary Mode - BINARY mode is used for transferring files that are not text (e.g., executable programs, word processing documents, spreadsheets, databases, graphics files, and sound files). Perl scripts are text and should NOT be uploaded in this mode. Graphics on the other hand should use BINARY.

ASCII Mode - ASCII mode is used for transferring text files. Perl scripts ARE text files and should ALWAYS be transferred in ASCII mode.

Auto Mode
- This is a setting most FTP clients have that will determine whether a file should be uploaded in ASCII or BINARY automatically. MAKE SURE THIS OPTION IS OFF!! Most FTP clients cannot tell what files should be BINARY or ASCII. Especially when it comes to Perl CGI scripts.

CHMOD - This means to change permissions. This is primarily for Unix/Linux/*nix based systems. Windows has different permission schemes. Most FTP clients provide a way to change permissions. When you change permissions on a file, it gives permission for that file to be either read, executed, or written to, and who can do those things. This also applies to directories (folders). If you are installing via a command line access, such as telnet, you can change permissions with the CHMOD command. For example: CHMOD 777 file.pl. If you need to know how your FTP program utilizes this feature, please read your FTP directions. YOU WILL BE REQUIRED TO CHANGE PERMISSIONS DURING THIS INSTALLATION! Also keep in mind, permission schemes can differ from system to system. You may use other permission schemes other than what is listed in this installation.

POP3 Box - When mail is delivered to your server, it is placed in a file. When your mail client accesses your server (Using the POP3 protocol) it reads this file and retrieves your mail and attachments (all in the same file). The file is called your box. You can visualize this as an actual mail box that you frequently see in the front of peoples houses.

Catch-all Box - The JiLMaiL is able to create multiple email accounts by only using one POP3 box. Your HOST, or server administration software can enable a feature called a catch-all. If your hostname is domain.com, and you have a POP3 box setup for jim@domain.com, and someone sends email to jim@domain.com, the mail is placed into jims POP3 box. Now if someone sends email to jill@domain.com, and there has not been a POP3 box assigned to this email address, the mail is generally bounced back to the sender as a user unknown. A catch-all box however, takes all mail that is addressed to anyone at domain.com and places it into the same POP3 box. So, if someone sends mail to jim@domain.com, it arrives to the catch-all. If someone sends email to jill@domain.com it arrives to the same catch-all box, etc., for every name that hasn't been defined to arrive to a separate POP3 box.

The JiLMaiL will take the mail out of this catch-all box and route it to the correct people who are a part of your service. If the user does not exist, it will be bounced back to the sender.

cgi-bin - The cgi-bin is a common directory on most web servers that is set aside for executing CGI scripts in. In this installation, you will be creating a folder off of the cgi-bin called mail. If you do not have a directory called cgi-bin, either use the equivalent, or create a directory off of your web root directory (where you main index.htm file is) called cgi-bin.

Web Root - This is the directory where your main index.htm file is located. For example, if someone calls your URL in their browser like this: http://www.yoursite.com the page that is displayed is your main index.htm file. The directory where this file is located is considered your Web Root directory.

Base Path - This is the ENTIRE path to a given directory. For example, on a Windows system, your Windows System path would be C:\Windows\System. On UNIX, you generally do not use a drive letter, for example, your path to Perl is usually /usr/bin/perl. Please note, paths in windows do not generally transfer well to Perl scripts, so if your path is something similar to C:\Inetpub\somedirectory You would probably display it in a variable like so: "C:\\Inetpub\\somedirectory" as the \ in Perl will escape the \ metacharacter.

Path To Perl - Your path to Perl is the location of Perl on your system. The beginning of your path to Perl ALWAYS should start with: #! (shebang) so if your path is at /usr/bin/perl then your path to Perl is #!/usr/bin/perl

 

 

 Setup the Mail Collector and Database:

if you are using CPANEL, then follow the steps below:

Log into your CPANEL of site,

  • open "Mail" and add a mail account something hard to guess.

eg: something like "mailcollector@yoursite.com"

 

 


 

Now, this email address must be made default from CPANEL.

For this, go to "mail" option of CPANEL and click "default address" option

there, add the above address and make it default

so as, each and evey mail sent to @yourdomain.com must be deposited at above mail address.

check the screenshot below:

 

 

Now keep this formation handy

 

  • Path to Sendmail OR SMTP server.

  • Your base path to your cgi-bin or equivalent directory.

  • Your base path to your web root (document root).

  • Your POP server.

  • Your catch-all username and password.

  • Your MySQL server location, name, username, and password.

 

Step 1:

 

In the zip file you received, there are two folders named -

cgi-bin & root

inside cgi-bin, there is a folder "mail"

UPLOAD this folder from cgi-bin to your cgi-bin of your server

and inside root folder, there are 5 folders-

icon, sounds, art, mail, JavaScript

copy these 5 folders to your websites root directory

i.e inside public_html directory or htdocs

NOTE: Please make sure you have maintained  directory structure

Step 2:

after you upload the mail folder to cgi-bin of your server,

open it and change permissions on the files as given below:

The following files need to be CHMOD 777:

bounce_attachment.cgi
bounce_no_user.cgi
bounce_suspended.cgi
html_advertisement.cgi
messages.cgi
setup.cgi
text_advertisement.cgi
welcomemessage.cgi

The rest of the files in the mail directory should be CHMOD 755.

CHMOD temp directory to 777

Please check the permissions properly. Else, JiLMaiL wont work !

Step 3:


The JiLMaiL Platform requires quite a few modules, unfortunately, many people either do not have permissions to install modules, or lack the knowledge on how to do so. We have included copies of the modules needed and all that is required is that you upload them using our instructions below. However, for those of you who do have the ability to install your own modules from CPANEL, this is preferred. If you do wish to install the modules, here are the modules you should install:

DBI
DBD::MySQL
CGI
Net::POP3
Net::SMTP
Mail::Address
URI::Escape
HTML::Scrubber
LWP::UserAgent (for Paypal).
MIME::Tools including the following MIME modules:
MIME::Parser
MIME::Head
MIME::Entity
 

There is a modules.zip file we have included. Extract this file and you will see the module-folders inside it. Upload all these folders inside your /mail/ directory

Therefore, the total 7 folders from modules.zip will go inside the /mail/ directory

Now, upload the .htaccess file to the root of your website.

 

Step 4:

 open your webbrowser and goto url:

http://www.yourwebsite.com/xemail?Change_Settings

You should see the Change Settings screen. You will need to complete all of the forms that are BOLD. The only BOLD item you will not change is the variable called setup.

DO NOT CHANGE THIS VARIABLE YET.

If you are not sure what these variables are, please click the variable for a better explanation.

Only complete the BOLD variables then click submit. If you do not receive an error, then the MySQL tables were created, and you then will need to complete the rest of the variables. You do NOT need to complete the variables that deal with customizing the look yet. Make sure you define the admin, domains and the POP variables then change the setup variable to 0 and click submit.

Remember, the variable admin is the username you will use to access the JiLMaiL as the administrator. This must contain the a domain name used in the domain variable.

All of the non-layout variables should be defined before you continue.

After you have set the setup variable to 0, you should be prompted to login. Register the account you defined in the admin variable and then log in.

From this point, you should setup the POP variables (click administrator, Change Settings). These are the variables for your catch-all POP box.

Use the Email address we created and made default in the beginning of this help file

If you find that you are not receiving mail, please check the file called data.cgi in the temp directory. If you open this file with a text editor, you should see the last email processed, however, if there was an error accessing the POP box, it will be printed here.

NOTE: Set your max_incoming_bytes variable no larger then max_allowed_packet variable of your MySQL server. Please ask your host or use a third party MySQL application to view your MySQL variables to find out this amount. If you set this higher than the max_allowed_packet variable and an attachment is received it could crash your mail process or deliver an incomplete attachment. If you administer your own MySQL server, you can create or edit your my.cnf file (/etc/my.cnf) and raise the max_allowed_packet variable.

You can significantly improve the performance of the JiLMaiL by having the mail routine done via a cronjob. To do this, open the file called messenger_cron.sh and edit the line:

cd /path/to/cgi-bin/mail

And change the path to the ABSOLUTE path of the JiLMaiL.

DO NOT INCLUDE THE TRAILING SLASH!

Save this script and upload it in ASCII mode to your server and CHMOD 755. You can then call this script every minute via crontab. Your entry should look something like this:

* * * * * /absolute/path/to/messenger_cron.sh >/dev/null 2>&1

You will then set the do_cron variable to 1.

Now mail is processed during the cronjob and not user initiated (when the user goes to the inbox).
 

On shared servers, the cron jobs can make system unstable for large amount of mails. So, you can avoid use of cron jobs. Even that works perfectly !


Every variable in the variables section can be clicked for an explanation of each variable. For further help on these variables, please post your question in our support section.
You can also edit script messages from the admin control panel. These are messages, and other wording in the script that can be modified. When editing templates, you may notice some of the form buttons are labeled or valued with dynamic tags. In this case, then the wording is most likely in your messages settings. This is primarily for those who wish to change the wording to conform to their language.

 

Remember: to access the administrator panel, you must login normally using the admin username you defined in setting panel above and when you see your inbox, visit this url:

www.yoursite.com/xemail?Admin

replace yoursite by your domain


 

 

 

To enable RTF in mail compose:

open JavaScript folder from root directory

edit this file: os.js

the very first line u see, replace the path with your sites path to icon directory from root.

if you have maintained the same directory structure then you'll just have to change the domain name.

eg:"  http://www.jilmail.com/icon/  "

change and upload it to /javascript/ folder

 

 

Points to remember:

  • Always, make your users access JiLMaiL from www.yoursite.com only and NOT from yoursite.com else some things just wont work.

  • For this, you can setup a redirector in your CPANEL.

  • such that yoursite.com/mail ---> www.yoursite.com/xemail

 

  • If you are not receiving mails, then you have set the mail collector incorrectly.  Also, do check the cron job you set.

  • You cannot send mails, check the "sendmail path". Ask your administrator for it.

  • If you are receiving 500 Internal Server Error, then you have set the permissions incorrectly. Please revise and re-check the permissions from STEP 2

 

 

For the correct admin panel settings, we have included the screenshots of our demo server, below:

 

 

 

If you need anything, write to us at support section:

www.jilmail.com/support

 

Have Fun with your email system.

Mac,

JiLMaiL Technician

JiLMaiL.com